﻿using System;

class ExamineAndExchange
{
    static void Main()
    {
        /*Write an if statement that examines two integer variables and 
         * exchanges their values if the first one is greater than the second one.*/

        Console.WriteLine("Enter two numbers.");
        Console.Write("Enter first number: ");
        int firstNumber = int.Parse(Console.ReadLine());
        Console.Write("Enter second number: ");
        int secondNumber = int.Parse(Console.ReadLine());

        int smallerNumber = firstNumber;
        int biggerNumber = secondNumber;

        if (firstNumber > secondNumber)
        {
            smallerNumber = secondNumber;
            biggerNumber = firstNumber;

        }
        Console.WriteLine("The smaller number is: {0} and the bigger is: {1}", smallerNumber, biggerNumber);
    }
}

